import 'dart:async';

import 'package:lishopflu/base/controller_import.dart';


class HomeCtl extends BaseListController<String> with SingleGetTickerProviderMixin{


  @override
  void onFirst() {
    callRefresh();
  }

  @override
  void getList(FutureOr<String> Function(List<String> value) onValue) {
    List<String> pause = [];
    for(var i=0;i<size;++i) {
      pause.add(mList.length.toString() + pause.length.toString());
    }
    onValue.call(pause);
  }

  @override
  void onDestroy() {

  }

  void toSearch() => Get.toNamed(AppPages.HOME_SEARCH);

  void toProductDetail(Map<String, dynamic> params) => Get.toNamed(AppPages.PRODUCT_DETAIL, arguments: AppArguments(params: params));
}